<script type="text/javascript" charset="utf-8">

	/* Global var for counter */
	var positionCount = 0;
	
	$(function(){
	    	$("#mytag label").each(function(i){
			  	if(jQuery.trim($(this).html()) == "Candidates:"){
			  		var parentHeight = $(this).parent("div").height();
			  		$(this).height(parentHeight)
				 }
	    	});

			$("#createElect").click(function(){
				$("#electCreatFrom").submit();
			});
	});
</script>


<!-- /.section, /#navigation -->
<div id="main-wrapper">
  <div id="main" class="clearfix with-navigation">
    <div id="content" class="column">
		 <div class="breadcrumb" ><h3>Elect Confirm </h3></div>
      <div class="section">
        <div id="content-area">
          <form action="<!--{$smarty.const.HTTP_URL}-->elect/elect.php" method="post" id="electCreatFrom" >
          <input type="hidden" name="mode" id="mode" value="creatElect" />
          <input type="hidden" name="<!--{$smarty.const.TRANSACTION_ID_NAME}-->" value="<!--{$transactionid}-->" />
              
              <div class="form-item" id="edit-mail-wrapper">
                <label for="edit-mail">Election Tilte:</label>
                <input maxlength="64" name="election" id="election" size="60" value="<!--{$electionTilte|escape}-->" class="form-text required" type="text" style = "border-style:none;background-color: #FFFFFF" readonly="readonly">
              </div>
              
              <div class="form-item" id="edit-mail-wrapper">
                <label for="edit-mail">Time Zone: 
                </label>
                <input maxlength="10" name="startDate"  value="<!--{$startDate|escape}-->" class="form-text required" type="text" style = "border-style:none;background-color: #FFFFFF;width:90px" readonly="readonly">
              	-
              	<input maxlength="10" name="endDate"   value="<!--{$endDate|escape}-->" class="form-text required" type="text" style = "border-style:none;background-color: #FFFFFF;width:90px" readonly="readonly">
	              <input name="bk" id="back" value="Go back" class="form-submit" type="button" onclick='history.back();' style=" float:right; width:100px; ">
	              <input name="op" id="createElect" value="Create Elect" class="form-submit" type="button" style=" float:right; width:100px; ">
              </div>
<div id="mytag">   
<!--{section name=counter loop=$positionNameArr}-->	
						
            <div class="form-item" id="edit-mail-wrapper" style="margin-top:20px">
                <label for="edit-mail"><font size="2">Position Name:</font> 
                </label>
                <input maxlength="50" name="positionName[<!--{$smarty.section.counter.index}-->]"  value="<!--{$positionNameArr[counter]|escape}-->" class="form-text required" type="text" style = "border-style:none;background-color: #FFFFFF;" readonly="readonly">
            </div>
            <hr>
			<fieldset class="group-select2" style="margin-top:-10px">
                <legend>select2 </legend>
                	<div class="form-item">
	                  <label>Candidates:</label>
	                  <div class="form-radios">
	                  	<!--{section name=index loop=$candidateArr[counter]}-->	
	                    <div class="form-item" id="edit-field-mfee-value-wrapper">
	                      <label class="option" for="edit-field-mailmagazine-value-agree">
	                        <input name="scriptCandidate[<!--{$smarty.section.counter.index}-->][]" value="<!--{$candidateArr[counter][index]|escape}--> " class="form-radio" type="checkBox"/><!--{$candidateArr[counter][index]|escape}-->
	                        <input name="candidate[<!--{$smarty.section.counter.index}-->][]" value="<!--{$candidateArr[counter][index]|escape}--> "  type="hidden"><!--{$candidateArr[counter][index]|escape}-->
	                      </label>
	                    </div>
	                    <!--{/section}-->
	                  </div>
	                  <div id="msg-for-mailmagazine" class="description " style ="color: red;"></div>
	                </div>
             </fieldset>
               <div class="description">
               		At most You Can check it for 
               		<input type="hidden" name ="selectMax[<!--{$smarty.section.counter.index}-->]" value="<!--{$selectMaxArr[counter]|escape}-->"/>
               		<span class="form-required" title="This field is required."><!--{$selectMaxArr[counter]|escape}--> </span>
               </div>
  <!--{/section}-->
 </div>                  
           
               <hr> 
              
          </form>
        </div>
      </div>
    </div>
    <!-- /.section, /#content -->
  </div>
</div>
<!-- /#main, /#main-wrapper -->
